﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace WindowsFormsApplication1
{
    public partial class RenamePic : Form
    {
        public String newName;
        public bool cancel = false;

        public RenamePic(String imageName)
        {
            this.CenterToParent();
            InitializeComponent();
            textBox1.Text = imageName;
            
        }

        private void button1_Click(object sender, EventArgs e)
        {
            newName = textBox1.Text;
            Close();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            cancel = true;
            Close();
        }
    }
}
